package com.tledu.production.service.plan;

import com.tledu.production.model.plan.CustomerManagement;
import com.tledu.production.model.plan.JobManagement;
import com.tledu.production.model.plan.OrderManagement;
import com.tledu.production.model.plan.ProductManagement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlanService {
    //展示所有数据
    List<CustomerManagement> getAllC();

    List<JobManagement> getAllJ();

    List<OrderManagement> getAllO();

    List<ProductManagement> getAllP();

    //添加
    int insertP(ProductManagement productManagement);

    int insertC(CustomerManagement customerManagement);

    int insertJ(JobManagement jobManagement);

    int insertO(OrderManagement orderManagement);

    //删除
    int deleteP(String id);

    int deleteO(String id);


    //编辑
    int updateP(ProductManagement productManagement);

    ProductManagement editP(String id);

    int updateC(CustomerManagement customerManagement);

    CustomerManagement editC(Integer id);

    int updateJ(JobManagement jobManagement);

    JobManagement selectJ(Integer id);

    int updateO(OrderManagement orderManagement);

    OrderManagement selectO(Integer id);

    //查找
    List<CustomerManagement> search(String condition, String conditionName);

    //订单查找
    List<OrderManagement> searchO(String type, String searchText);


}
